package com.ch14.service;

import com.ch14.util.ApplicationContextHolder;

/**
 * @ClassName TestService
 * @Description TODO
 * @Author Kx
 * @Date 2025/5/8 11:13
 * @Version 1.0
 */
public class TestService {
    /**
     * @author: kx
     * @date: 2025/5/8 11:16
     * @description: 获取IOC容器中的Bean对象
    */
    public void save() {
        UserService userService = ApplicationContextHolder.getBean(UserService.class);
        userService.add();
    }
}
